//
//  systemMessageModel.swift
//  OnceNectar
//
//  Created by Zhang Dream on 2018/6/24.
//  Copyright © 2018年 com.inwhoop. All rights reserved.
//

import Foundation
import MappingAce

struct systemMessageModel:Mapping {
    var sendTime :String?
    var title :String?
    var message :String?
    var id :String?
    
    var miUser: userMessageModel?
}

struct userMessageModel:Mapping {
    var age :String?
    var birthday :String?
    var concernType :String?
    var concernsAmount :String?
    var constellation :String?
    var fansAmount :String?
    var headIcon :String?
    var id :String?
    var matchDegree :String?
    var nickname :String?
    var score :String?
    var sexy :String?
    var username :String?
    
}

extension systemMessageModel{
   
    mutating func initGrade(dic:[String:Any]) {
        miUser = userMessageModel(fromDic: dic)
    }
}
